from celery_tasks.main import app
from libs.yuntongxun.sms import CCP


# 5.加载任务
@app.task(name='send_sms')
# 4.创建任务
def send_sms(mobile, sms_code):
    ccp = CCP()
    ccp.send_template_sms(mobile, [sms_code, 5], 1)
